home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / Grant's CGI Framework 1.0b14 / Interface / WindowInt.h < prev   
C/C++ Source or Header  |  1996-04-12  |  2KB  |  91 lines

  1. #pragma once
  2. /*****
  3.  *
  4.  *    WindowInt.h
  5.  *
  6.  *    This is a support file for "Grant's CGI Framework".
  7.  *    Please see the license agreement that accompanies the distribution package
  8.  *    for licensing details.
  9.  *
  10.  *    Copyright ©1995,1996 by Grant Neufeld
  11.  *    grant@acm.com
  12.  *    http://arpp.carleton.ca/grant/
  13.  *
  14.  *****/
  15.  
  16. #include "MyConfiguration.h"
  17. #if kCompileWithForeground
  18.  
  19. /***  CONSTANT DECLARATIONS  ***/
  20.  
  21. #define kMinWindSize    48
  22.  
  23.  
  24. /***  TYPE DECLARATIONS  ***/
  25.  
  26. typedef enum
  27. {
  28.     Window_UNKNOWN,                /* unrecognized type of window */
  29.     
  30.     Window_none,                /* not a window */
  31.     Window_dlgModal,            /* modal dialog */
  32.     Window_dlgMoveableModal,    /* moveable modal dialog */
  33.     Window_dlgModeless,            /* modeless dialog */
  34.     Window_about,                /* about box */
  35.     Window_DA,                    /* desk accessory window */
  36.     
  37.     Window_Application            /* custom application window */
  38. } window_type;
  39.     
  40. typedef struct
  41. {
  42.     window_type        wType;
  43.     Boolean            scrollbars;
  44.     long            data;
  45. } windowInfo;
  46.  
  47. typedef windowInfo** windowInfoHdl;
  48.  
  49.  
  50. /***  FUNCTION PROTOTYPES  ***/
  51.  
  52.     void            WindowMenuClose        ( short );
  53.     
  54.     void            WindowActivate        ( WindowPtr, Boolean, const EventRecord * );
  55.     void            WindowUpdate        ( WindowPtr );
  56.     void             WindowContentClick    ( WindowPtr, const EventRecord *, Boolean * );
  57.     void            WindowZoomBox        ( WindowPtr, short );
  58.     void             WindowGrow            ( WindowPtr, Point );
  59.     
  60.     Boolean            WindowClose            ( WindowPtr, short, Boolean );
  61.     Boolean            WindowCloseAll        ( Boolean );
  62.     
  63.     window_type        WindowType            ( WindowPtr );
  64.     
  65.     Boolean            WindowNewSetInfo    ( WindowPtr, window_type, Boolean, long );
  66.     windowInfoHdl    WindowNewInfoHdl    ( window_type, Boolean, long );
  67.     void            WindowSetInfoHdl    ( WindowPtr, windowInfoHdl );
  68.     windowInfoHdl    WindowGetInfoHdl    ( WindowPtr );
  69.     void            WindowDisposeInfoHdl    ( WindowPtr );
  70.     long            WindowGetData        ( WindowPtr );
  71.     /* for backwards compatibility. Avoid use */
  72.     Handle            WindowGetDataHdl    ( WindowPtr );
  73.     
  74. /***  EXTERNAL USER DEFINED FUNCTIONS  ***/
  75.  
  76. p_export OSErr    CustomCloseWindow        ( WindowPtr );
  77. p_export void    CustomActivateWindow    ( WindowPtr, Boolean );
  78. p_export void    CustomUpdateWindow        ( WindowPtr );
  79. p_export void    CustomClickInWindow        ( WindowPtr, Point, Boolean * );
  80.  
  81. #if !(kCompileWithout_MY_Names)
  82. #define MyCloseWindow        CustomCloseWindow
  83. #define MyActivateWindow    CustomActivateWindow
  84. #define MyUpdateWindow        CustomUpdateWindow
  85. #define MyClickInWindow        CustomClickInWindow
  86. #endif
  87.  
  88. #endif    /* kCompileWithForeground */
  89.  
  90. /***** EOF *****/
  91.